@extends('layouts.admin.application')

@section('content')
    <div class="main-content">
        <div class="col-xs-12">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="#">首页</a></li>
                    <li><a href="{{route('cashier.apply.index')}}">供应商管理</a></li>
                    <li>进货记录</li>
                </ul>
            </div>
            <div class="alert alert-block alert-success">
                各门店所有进货记录
                <strong class="green">
                    按月份分组
                </strong>
            </div>
            <div class="table-responsive">
                <div id="sample-table-2_wrapper" class="dataTables_wrapper" role="grid">
                    <div class="row">

                        @include('layouts.partials._flash')

                        <div class="timeline-container">
                            <div class="timeline-label">
                                <span class="label label-purple arrowed-in-right label-lg">
                                    <b>2017年07月份</b>&nbsp;&nbsp;&nbsp;&nbsp;
                                    <span class="center">{{$store->name}}</span>&nbsp;&nbsp;&nbsp;&nbsp;
                                    <b>进货记录</b>
                                </span>
                            </div>

                            <div class="timeline-items">

                                <div class="timeline-item clearfix">
                                    <div class="timeline-info">
                                        <i class="timeline-indicator icon-bug btn btn-pink no-hover"></i>
                                    </div>

                                    <div class="widget-box">
                                        <div class="widget-header header-color-green widget-header-small">
                                            <h5 class="smaller">进货商品信息</h5>

                                            <span class="widget-toolbar no-border">
                                                <i class="icon-time bigger-110"></i>
                                                {{$store->created_at}}
                                            </span>

                                            <span class="widget-toolbar">
                                                <a href="#" data-action="collapse">
                                                    <i class="icon-chevron-up"></i>
                                                </a>
                                            </span>
                                        </div>

                                        <div class="widget-body">
                                            <div class="widget-body-inner" style="display: block;">
                                                <div class="widget-main">
                                                    <table id="sample-table-2"
                                                           class="table table-striped table-bordered table-hover dataTable del-table"
                                                           aria-describedby="sample-table-2_info">
                                                        <thead>
                                                        <tr role="row">
                                                            <th>编号</th>
                                                            <th>商品条码</th>
                                                            <th>名称</th>
                                                            <th>图片</th>
                                                            <th>规格</th>
                                                            <th>单位</th>
                                                            <th>零售价</th>
                                                            <th>会员价</th>
                                                            <th>进价</th>
                                                            <th>库存</th>
                                                            <th>生产厂家</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>

                                                        @foreach($store->purchase as $p)
                                                            <tr class="odd" data-id="">
                                                                <td>{{$p->id}}</td>
                                                                <td>{{$p->code}}</td>
                                                                <td>{{$p->name}}</td>
                                                                <td><img src="{{$p->image}}" style="width: 40px;height: 35px;"></td>
                                                                <td>{{$p->spec}}</td>
                                                                <td>{{$p->uint}}</td>
                                                                <td>{{$p->price}}</td>
                                                                <td>{{$p->member_price}}</td>
                                                                <td>{{$p->purchase_price}}</td>
                                                                <td>
                                                                    <input type="text" class="ace stock" value="{{$p->stock}}"
                                                                           style="width: 40px;">
                                                                </td>
                                                                <td>{{$p->company}}</td>
                                                            </tr>
                                                        @endforeach
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="widget-box">
                                        <div class="widget-header header-color-green widget-header-small">
                                            <h5 class="smaller">进货商品信息</h5>

                                            <span class="widget-toolbar no-border">
                                                <i class="icon-time bigger-110"></i>
                                                {{$store->created_at}}
                                            </span>

                                            <span class="widget-toolbar">
                                                <a href="#" data-action="collapse">
                                                    <i class="icon-chevron-up"></i>
                                                </a>
                                            </span>
                                        </div>

                                        <div class="widget-body">
                                            <div class="widget-body-inner" style="display: block;">
                                                <div class="widget-main">
                                                    <table id="sample-table-2"
                                                           class="table table-striped table-bordered table-hover dataTable del-table"
                                                           aria-describedby="sample-table-2_info">
                                                        <thead>
                                                        <tr role="row">
                                                            <th>编号</th>
                                                            <th>商品条码</th>
                                                            <th>名称</th>
                                                            <th>图片</th>
                                                            <th>规格</th>
                                                            <th>单位</th>
                                                            <th>零售价</th>
                                                            <th>会员价</th>
                                                            <th>进价</th>
                                                            <th>库存</th>
                                                            <th>生产厂家</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>

                                                        @foreach($store->purchase as $p)
                                                            <tr class="odd" data-id="">
                                                                <td>{{$p->id}}</td>
                                                                <td>{{$p->code}}</td>
                                                                <td>{{$p->name}}</td>
                                                                <td><img src="{{$p->image}}" style="width: 40px;height: 35px;"></td>
                                                                <td>{{$p->spec}}</td>
                                                                <td>{{$p->uint}}</td>
                                                                <td>{{$p->price}}</td>
                                                                <td>{{$p->member_price}}</td>
                                                                <td>{{$p->purchase_price}}</td>
                                                                <td>
                                                                    <input type="text" class="ace stock" value="{{$p->stock}}"
                                                                           style="width: 40px;">
                                                                </td>
                                                                <td>{{$p->company}}</td>
                                                            </tr>
                                                        @endforeach
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="timeline-container">
                            <div class="timeline-label">
                                <span class="label label-success arrowed-in-right label-lg">
                                    <b>2017年06月份</b>
                                </span>
                            </div>

                            <div class="timeline-items">

                                <div class="timeline-item clearfix">
                                    <div class="timeline-info">
                                        <i class="timeline-indicator icon-bug btn btn-success no-hover"></i>
                                    </div>

                                    <div class="widget-box">
                                        <div class="widget-header header-color-green widget-header-small">
                                            <h5 class="smaller">进货商品信息</h5>

                                            <span class="widget-toolbar no-border">
                                                <i class="icon-time bigger-110"></i>
                                                9:15
                                            </span>

                                            <span class="widget-toolbar">
                                                <a href="#" data-action="collapse">
                                                    <i class="icon-chevron-up"></i>
                                                </a>
                                            </span>
                                        </div>

                                        <div class="widget-body">
                                            <div class="widget-body-inner" style="display: block;">
                                                <div class="widget-main">
                                                    <table id="sample-table-2"
                                                           class="table table-striped table-bordered table-hover dataTable del-table"
                                                           aria-describedby="sample-table-2_info">
                                                        <thead>
                                                        <tr role="row">
                                                            <th>编号</th>
                                                            <th>商品条码</th>
                                                            <th>名称</th>
                                                            <th>图片</th>
                                                            <th>规格</th>
                                                            <th>单位</th>
                                                            <th>类别</th>
                                                            <th>品牌</th>
                                                            <th>零售价</th>
                                                            <th>会员价</th>
                                                            <th>进价</th>
                                                            <th>库存</th>
                                                            <th>排序</th>
                                                            <th>生产厂家</th>
                                                            <th>操作</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <tr class="odd" data-id="">
                                                            <td>1</td>
                                                            <td>12313</td>
                                                            <td>哈哈哈</td>
                                                            <td><img src="" style="width: 40px;height: 35px;"></td>
                                                            <td>10mg</td>
                                                            <td>支</td>
                                                            <td>平板</td>
                                                            <td>小米</td>
                                                            <td>12313</td>
                                                            <td>1233</td>
                                                            <td>123123</td>
                                                            <td>
                                                                <input type="text" class="ace stock" value="11"
                                                                       style="width: 40px;">
                                                            </td>
                                                            <td>
                                                                <input type="text" class="ace sort_order" value="22"
                                                                       style="width: 40px;">
                                                            </td>
                                                            <td>哈药六厂</td>
                                                            <td>
                                                                <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
                                                                    <a class="green" href=""><i
                                                                                class="icon-pencil bigger-130"></i></a>
                                                                    <a class="red" href=""
                                                                       data-method="delete"
                                                                       data-token="{{csrf_token()}}"
                                                                       data-confirm="确定要删除此条记录么?">
                                                                        <i class="icon-trash bigger-130"></i></a>
                                                                </div>
                                                            </td>
                                                        </tr>

                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        @endsection

        @section('js')
            <script>

            </script>
@endsection